package com.geeksaga.dao.ibatis.mysql;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.geeksaga.dao.AuthorityDao;
import com.geeksaga.dao.ibatis.BaseIBatisDao;
import com.geeksaga.domain.Authority;

/**
 * @author newbie
 * @since 0.1
 */
@Repository
public class AuthorityDaoImpl extends BaseIBatisDao implements AuthorityDao {

    public Authority add(Authority authority) throws DataAccessException {
        return (Authority) getSqlMapClientTemplate().insert("AUTHORITY.add", authority);
    }
}